// 封装对token的操作
const key = 'heimamm_mobile'

// 保存token
export function setLocal (value) {
  window.localStorage.setItem(key, value)
}

// 获取token
export function getLocal () {
  return window.localStorage.getItem(key)
}

// 删除token
export function removeLocal () {
  window.localStorage.removeItem(key)
}

// 封装对历史搜索的操作
const key1 = 'history'
// 保存token
export function setHistory (value) {
  window.localStorage.setItem(key1, value)
}

// 获取token
export function getHistory () {
  return window.localStorage.getItem(key1)
}

// 删除token
export function removeHistory () {
  window.localStorage.removeItem(key1)
}
